package com.example.ossdemo.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
public class ExceptionController {

    @GetMapping("/test/test1")
    public   String   test1(){
        System.out.println(1/0);
        return   "test1  ok";
    }

    @GetMapping("/test/test2")
    public   String   test2(){
        String  s=null;
        System.out.println(s.length());
        return   "test2  ok";
    }
}
